package main

import (
	"httpadmin/go-attribute/application/core"
	"httpadmin/go-attribute/router"
	_ "httpadmin/go-attribute/service/media"

	"github.com/gin-gonic/gin"
)

func main() {
	// loadConfig
	core.Initialize()

	// initResource

	r := gin.Default()
	// 注册媒体监测链接
	router.InitMediaRouter(r)
	//注册事件上报
	router.InitPlatformRouter(r)

	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})
	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
